%a{ :name => "create_comment", :class => "named_anchor"} New Comment
#create_comment_progress{:style => "display:none;"}
  = image_tag "spinner_large.gif"
#create_comment
  #error_box
  - form_remote_for(:comment, :url => {:controller => "comments", :action => "create"}, :loading => "Element.hide('create_comment');Element.show('create_comment_progress');", :complete => "Element.show('create_comment');Element.hide('create_comment_progress');", :html => {:id => "comment_form"}) do |f|

    - unless @user
      .form_row
        %label Name
        = f.text_field(:name, :class => "text")
    
      .form_row
        %label Email
        = f.text_field(:email, :class => "text")
    
    .form_row
      %label Body
      ~ f.text_area :body
    
    .form_row
      = f.hidden_field(:post_id, :value => post.id)
      
    .form_row
      %label
      = f.submit("Post Comment", :class => "submit")

    - if APP_SETTINGS[:use_gravatars]
      %br
      = "#{link_to("Gravatar", "http://www.gravatar.com")} enabled user icons, visit site to set yours." 